package com.hhkj.api.withdrawal.service.biz;

import com.hhkj.admin.sale.domain.SaleWithdrawal;
import com.hhkj.admin.sale.model.req.SaleWithdrawalReq;
import com.hhkj.admin.sale.model.res.SaleWithdrawalRes;
import com.hhkj.api.withdrawal.model.req.ApiWithdrawalAccountReq;
import com.hhkj.api.withdrawal.model.res.ApiWithdrawalAccountRes;

import java.util.List;

/**
 * ApiSaleWithdrawalAccountBizService
 *
 * @author zheng
 * @since 2023/11/5 15:46
 */
public interface ApiSaleWithdrawalAccountBizService {

    /**
     * 查看详情
     *
     * @param id
     * @return
     */
    ApiWithdrawalAccountRes getById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    boolean removeByIdList(List<Long> idList);

    /**
     * 列表
     *
     * @param req 请求信息
     * @return 账户列表信息
     */
    List<ApiWithdrawalAccountRes> list(ApiWithdrawalAccountReq req);

    /**
     * 新增销售提现账户
     *
     * @param req 请求信息
     * @return true/false
     */
    boolean save(ApiWithdrawalAccountReq req);

    /**
     * 修改销售提现账户
     *
     * @param req 请求信息
     * @return true/false
     */
    boolean update(ApiWithdrawalAccountReq req);
}
